package com.queet.transaction.core.action.demo;

import java.util.Map;

import javax.servlet.ServletConfig;

import com.opensymphony.xwork2.Action;
import com.opensymphony.xwork2.ActionSupport;
import com.queet.transaction.core.action.BaseAction;
import com.queet.transaction.core.service.DemoService;

/**
 * a struts2 demo action
 * @author Howard
 * 
 */
public class DemoAction extends BaseAction {

	private static final long serialVersionUID = 1L;
	private DemoService demoService;
	private String result;
	
	/*----functional method---*/
	public String visit(){
		this.result=demoService.getString("aaaa");
		return view("demo");
	}
	
	/*----get and set method---*/
	public String getResult() {
		return result;
	}

	public void setDemoService(DemoService demoService) {
		this.demoService = demoService;
	}


}
